x86/mca: Fix debug output.
authorLiu, Jinsong <jinsong.liu@intel.com>
Fri, 20 May 2011 12:42:23 +0000 (13:42 +0100)
committerLiu, Jinsong <jinsong.liu@intel.com>
Fri, 20 May 2011 12:42:23 +0000 (13:42 +0100)
At x86_mcinfo_dump(), a little bug at printk information,
illusively= indicate an CMCI/POLLED error to a MCE error, this will
make debug confusing.

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
xen/arch/x86/cpu/mcheck/mce.c

index 909085b0c9386531724559e25d8f8b4f1f0e43ed..9f86616f42d1069a705c9081508d80f26c4df55d 100644 (file)
@@ -940,10 +940,11 @@ void x86_mcinfo_dump(struct mc_info *mi)
         printk(XENLOG_WARNING
                "CPU%d: Machine Check Exception: %16"PRIx64"\n",
                mc_global->mc_coreid, mc_global->mc_gstatus);
-    } else {
-        printk(XENLOG_WARNING "MCE: The hardware reports a non "
-               "fatal, correctable incident occurred on "
-               "CPU %d.\n",
+    } else if (mc_global->mc_flags & MC_FLAG_CMCI) {
+        printk(XENLOG_WARNING "CMCI occurred on CPU %d.\n", 
+               mc_global->mc_coreid);
+    } else if (mc_global->mc_flags & MC_FLAG_POLLED) {
+        printk(XENLOG_WARNING "POLLED occurred on CPU %d.\n",
                mc_global->mc_coreid);
     }